package com.zyx.settlement.server.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.zyx.settlement.server.common.enums.SettlementStatus;
import lombok.Data;

/**
 * @author Yaxi.Zhang
 * @since 2022/10/22 08:34
 */
@Data
@TableName(value = "settlement")
public class SettlementPO {
    /**
     * 结算id
     */
    @TableId(value = "id", type = IdType.NONE)
    private Integer id;

    /**
     * 订单id
     */
    @TableField(value = "order_id")
    private Integer orderId;

    /**
     * 交易id
     */
    @TableField(value = "transaction_id")
    private Integer transactionId;

    /**
     * 金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 状态
     */
    @TableField(value = "`status`")
    private SettlementStatus status;

    /**
     * 时间
     */
    @TableField(value = "`date`")
    private Date date;
}